package hospital.example;

public class Card implements Comparable<Card>{
    private int size;
    private String color;
    private String number;
    public Card(){

    }
    public Card(int size, String color, String number) {
        this.size = size;
        this.color = color;
        this.number = number;
    }

    public String toString(){
        return color + number;
    }

    public int getSize() {
        return size;
    }

    public String getColor() {
        return color;
    }

    public String getNumber() {
        return number;
    }
    public int compareTo(Card card){
        return Integer.compare(this.size, card.getSize());
    }
}
